package com.itheima.service;

import com.itheima.domain.Role;
import com.itheima.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * ClassName:UserInfoService
 * Package:com.itheima.service
 * Description:为更改之前的user表（将来替换成自己的）
 * Date:2020/3/1116:32
 * User: snow
 */
public interface UserInfoService extends UserDetailsService {

	public List<UserInfo> findAll(int page, int size) throws Exception;

	public List<UserInfo> findAll() throws Exception;

	public void save(UserInfo userInfo) throws Exception;

	public UserInfo findById(String userId) throws Exception;

	public List<Role> findOtherRole(String id) throws Exception;

	public void addRoleToUser(String userId, String[] roleIds) throws Exception;

	public UserInfo findByName(String userName) throws Exception;

	UserInfo findUserInfoById(String userInfoId);

	void freeze(String id);

	void open(String id);
}
